package com.github.ilioili.justdoit.components.activity;

import android.content.Intent;
import android.os.Bundle;

import com.github.ilioili.justdoit.R;
import com.github.ilioili.justdoit.common.AppBaseActivity;
import com.taihe.template.base.injection.Layout;

/**
 * An example full-screen activity that shows and hides the system UI (i.e.
 * status bar and navigation/system bar) with user interaction.
 */
@Layout(R.layout.activity_launch)
public class LaunchActivity extends AppBaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        postDelay(new Runnable() {
            @Override
            public void run() {
                startActivity(new Intent(LaunchActivity.this, MainActivity.class));
                overridePendingTransition(android.R.anim.fade_in, R.anim.scale_up_fade_in);
            }
        }, 500);
    }
}
